<template>
  <div>
    <div class="mod-menu__icon-inner">
      <div class="mod-menu__icon-list">
        <el-button
          v-for="(item, index) in iconList"
          :key="index"
          @click="iconActiveHandle(item)"
        >
          <svg-icon :name="item"></svg-icon>
        </el-button>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  computed: {
    //    IconSvg(){
    //    }
  },
  data() {
    return {
      iconList: [
        "icon-admin",
        "icon-bianji",
        "icon-config",
        "icon-dangdifill",
        "icon-daohang",
      ],
    };
  },
  methods: {
    iconActiveHandle(item) {
      this.$emit("iconSelect", item);
    },
  },
};
</script>

<style scoped>
.svg-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>